﻿using BW.MesProject.Equipment.Infrastructure.Dto.Input.ProjectMaintenance;
using BW.MesProject.Equipment.Infrastructure.Dto.Output;
using BW.MesProject.Equipment.Infrastructure.Dto.Output.ProjectMaintenance;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Infrastructure.Equipment
{
    /// <summary>
    /// 项目维护服务接口层
    /// </summary>
    public interface IProjectMaintenanceService
    {
        /// <summary>
        /// 添加项目维护
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> AddProjectMaintenance(AddProjectMaintenanceInput input);

        /// <summary>
        /// 项目维护显示列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiPaging<ProjectMaintenanceOutput> GetProjectMaintenanceList(ProjectMaintenanceQueryInput input);

        /// <summary>
        /// 逻辑删除项目维护数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<int> DeleteProjectMaintenance(long id);

        /// <summary>
        /// 根据项目维护ID查询项目维护数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<ProjectMaintenanceOutput> GetProjectMaintenanceValue(long id);

        /// <summary>
        /// 修改项目维护
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> UpdateProjectMaintenance(UpdateProjectMaintenanceInput input);
    }
}
